package entity; // 自动生成，无需修改

public class Course {
    private String courseId; // 课程编号
    private String courseName; // 课程名称
    private String location; // 上课地点
    private String time; // 上课时间

    // 构造方法：初始化课程信息
    public Course(String courseId, String courseName, String location, String time) {
        this.courseId = courseId;
        this.courseName = courseName;
        this.location = location;
        this.time = time;
    }

    // 获取和修改课程编号
    public String getCourseId() {
        return courseId;
    }
    public void setCourseId(String courseId) {
        this.courseId = courseId;
    }

    // 获取和修改课程名称
    public String getCourseName() {
        return courseName;
    }
    public void setCourseName(String courseName) {
        this.courseName = courseName;
    }

    // 获取和修改上课地点
    public String getLocation() {
        return location;
    }
    public void setLocation(String location) {
        this.location = location;
    }

    // 获取和修改上课时间
    public String getTime() {
        return time;
    }
    public void setTime(String time) {
        this.time = time;
    }

    // 打印课程信息时显示的内容
    @Override
    public String toString() {
        return "Course{" +
                "课程编号='" + courseId + '\'' +
                ", 课程名称='" + courseName + '\'' +
                ", 上课地点='" + location + '\'' +
                ", 上课时间='" + time + '\'' +
                '}';
    }
}